package kuzmenkov.oip.service.impl;

/**
 * Represents a chunk of comments
 * User: Michael Kuzmenkov
 * Date: 30.03.2009
 * Time: 0:53:56
 */
public class Chunk {
    /**
     * A number of this chunk
     */
    private int number;
    /**
     * An index of a first comment
     */
    private int beginIndex;
    /**
     * An index of a last comment
     */
    private int endIndex;

    public Chunk (int number, int beginIndex, int endIndex) {
        this.number = number;
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public void setBeginIndex(int beginIndex) {
        this.beginIndex = beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

}
